﻿#include "dialog.h"
#include "ui_dialog.h"

Dialog::Dialog(QWidget *parent)
    : QDialog(parent)
    , ui(new Ui::Dialog)
{
    ui->setupUi(this);
    // 创建自定义 Loading 控件
    LoadingWidget* loadingWidget = new LoadingWidget(this);
    loadingWidget->setSize(150); // 设置大小
    loadingWidget->setColor(QColor("#31bdec")); // 设置颜色

    // 将 Loading 控件添加到布局中
    QVBoxLayout* layout = new QVBoxLayout(this);
    layout->addWidget(loadingWidget);
    setLayout(layout);
}

Dialog::~Dialog()
{
    delete ui;
}

